package com.d0312.Z12;

public class MyCalc {
    private int n1;
    private int n2;
    public MyCalc(int n1,int n2){
        this.n1=n1;
        this.n2=n2;
    }
    public int Addtion(){
        int addtion=n1+n2;
        return addtion;
    }
   public int Subration(){
        int subration=n1-n2;
        return subration;
    }
    public int Multiplication(){
        int mul=n1*n2;
        return mul;
    }
    public int Division(){
        int div=n1/n2;
        return div;
    }

    public static void main(String[] args) {
        MyCalc myCalc=new MyCalc(32,8);
        System.out.println("加法的结果为:"+myCalc.Addtion());
        System.out.println("除法的结果为:"+myCalc.Division());
        System.out.println("乘法的结果为;"+myCalc.Multiplication());
        System.out.println("减法的结果为:"+myCalc.Subration());

    }
}
